package com.demo.services;

import com.demo.database.data.TDemoDepartment;

import java.util.List;

/**
 * 部门管理业务实现接口
 * @cuthor luoxiaojiang
 * @createTime 2019年11月17日20:57:48
 * @Verson 1.0.0
 */

public interface IDepartmentService {

    /**
     * 查询部门表中所有记录
     * @return
     * @throws Exception
     */
    public List<TDemoDepartment> departmentQuery() throws Exception;

    /**
     * 根据部门ID查询数据
     * @param positionId
     * @return
     * @throws Exception
     */
    public TDemoDepartment departmentQueryID(Integer departmentId) throws Exception;

    /**
     * 根据模糊查询部门名称的数据
     * @param context
     * @return
     * @throws Exception
     */
    public List<TDemoDepartment> departmentQuery1(String context) throws Exception;

    /**
     * 添加部门
     * @param position
     * @return
     * @throws Exception
     */
    public List<TDemoDepartment> departmentAdd(TDemoDepartment department) throws Exception;

    /**
     * 修改部门
     * @param position
     * @return
     * @throws Exception
     */
    public List<TDemoDepartment> departmentUpd(TDemoDepartment department) throws Exception;

    /**
     * 批量删除部门
     * @param ids
     * @return
     * @throws Exception
     */
    public List<TDemoDepartment> departmentDel(String... ids) throws Exception;
}
